<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script type="module">
    import { set, get, remove } from './16.cookie.js';
    set('name', 'jessica')
    set('age', '12')
    set('姓名', '张三')
    set('mingzi', 'wangwu', { maxAge: 5 })
    set('http1', 'only2', { HttpOnly: true })
    set('http', 'only', { secure: true })

    remove('age')
    remove('name')

    console.log(get('姓名'));
</script>

</html>